<%@ page import="java.util.Vector" %>
<%@ page import="com.entity.RegisterDoc" %><%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2021/9/10
  Time: 20:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <title>挂号记录</title>

    <link rel="stylesheet" type="text/css" href="css/deal.css">
</head>
<body style="background-color: #EBECF0">
<br>
<br>

<h2 style="margin-left: 15%">挂号记录</h2>
<br>

<hr align=center width="70%" SIZE=3>
<br>
<br>

<center>
<table border="1" cellspacing="0" width=70% cellpadding="20">
<tr bgcolor="#a9a9a9">
    <td align="center">编号</td>
    <td align="center">姓名</td>
    <td align="center">性别</td>
    <td align="center">科室</td>
    <td align="center">医生</td>
    <td align="center">日期</td>
    <td align="center">费用</td>
    <td align="center">是否完成</td>
</tr>

<%
    Vector<RegisterDoc> registerDocs = (Vector<RegisterDoc>) request.getAttribute("patientRegisterDocs");
    RegisterDoc registerDoc;
    if(registerDocs!=null){
        int index =1;
        int size = registerDocs.size();
        while (size>0){
            registerDoc = registerDocs.get(size-1);
            if(registerDoc!=null){
                %>
                <tr>
                    <td align="center"><%=registerDoc.getId()%></td>
                    <td align="center"><%=registerDoc.getPatientName()%></td>
                    <td align="center"><%=registerDoc.getSexString()%></td>
                    <td align="center"><%=registerDoc.getDepartment()%></td>
                    <td align="center"><%=registerDoc.getDoctorName()%></td>
                    <td align="center"><%=registerDoc.getCreatDateFormat()%></td>
                    <td align="center"><%=registerDoc.getCost()%></td>
                    <td align="center"><%=registerDoc.getIsAccomplish()%></td>
                </tr>
<%
            }
            size -= 1;
        }
    }
%>
</table>

    <br>
    <br>
    <a href="patientServlet?operation=homePage"><input type="button" value="返回" class="sub"></a>
</center>
</body>
</html>
